const express = require("express");
const router = express.Router();

const MySql = require("../lib/mysql");

router.post("/userOthers",async(req,res,next) => {



    const id = req.body.id;
    // const userId = req.body.user_id;
    const others = req.body.others;


    const resUpdate = await MySql.query('update user set others = ? where id = ?',[others,id]);

    res.json({
        code:1,
        message:'others更新成功',
    })
});

module.exports = router;